package com.accountant.travelaccountant;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class OpenAccountStatistics extends Activity {

	Button showAccountDetails, whoPaysWhom;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.account_details);

		/* Initialising the buttons */
		showAccountDetails = (Button) findViewById(R.id.ShowAccountDetails);
		whoPaysWhom = (Button) findViewById(R.id.WhoPaysWhom);
		/*****************************/

		showAccountDetails.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OpenAccountStatistics.this,
						ShowDetails.class);
				startActivity(intent);
			}
		});

		whoPaysWhom.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(OpenAccountStatistics.this,
						ResultScreen2.class);
				startActivity(intent);
			}
		});

	}

}
